


const app = getApp();

export const projectMixin = {


  onPullDownRefresh(){
    // console.log("下拉刷新")
  },
  onReachBottom(){
    // console.log("上啦加载")
  },
  async getProjectCount(){
    // projectCount
    const response = await this.$_server("project/count", {
      params: {
          // id: "?currentPage=" + page + "&pageSize=" + "4" + "&stageCompleteStatus=" + type,
      },
  });
  let { data } = response;

  // console.log(response)

  if(data.code != 200){return} 

  let value = data.data;
  
  let itemsInfo = value;
  itemsInfo[0] = value['total']
  this.setData({
    "itemsInfo":itemsInfo
  })

  // itemsInfo: { 0: "", 1: "", 2: "", 3: "" },

  // console.log(value);

  }
}